package com.acme.task4;

public class Task4Arrays {
	public static void main(String[] args) {
		
		int numberOf3 = 0;
		int numberOf7 = 0;
		int numberOf9 = 0;
		int array[] = new int[10];
		array[0] = 3;
		array[1] = 7;
		array[2] = 3;
		array[3] = 9;
		array[4] = 7;
		array[5] = 9;
		array[6] = 3;
		array[7] = 7;
		array[8] = 3;
		array[9] = 9;
		
		for (int i = 0; i < array.length; i++) {
			if (array[i]==3) numberOf3++;
			if (array[i]==7) numberOf7++;
			if (array[i]==9) numberOf9++;
		}
		
		
		System.out.println("Number of 3: "+numberOf3);
		System.out.println("Number of 7: "+numberOf7);
		System.out.println("Number of 9: "+numberOf9);
	}
}
